home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / hpux / defs.gcc < prev    next >
Text File  |  1994-08-01  |  9KB  |  325 lines

  1. #
  2. # FlexFAX Facsimile Software
  3. #
  4. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  5. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  6. # Permission to use, copy, modify, distribute, and sell this software and 
  7. # its documentation for any purpose is hereby granted without fee, provided
  8. # that (i) the above copyright notices and this permission notice appear in
  9. # all copies of the software and related documentation, and (ii) the names of
  10. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  11. # publicity relating to the software without the specific, prior written
  12. # permission of Sam Leffler and Silicon Graphics.
  13. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  14. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  15. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  16. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  17. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  18. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  20. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  21. # OF THIS SOFTWARE.
  22. #
  23.  
  24. #
  25. # These definitions are for building the software on a HP 9000/700
  26. # under HP-UX 9.x using gcc 2.3.3 and libg++ 2.3.1.
  27. #
  28. # TARGET:    hpux
  29. # COMPILER:    gcc
  30. #
  31. SHELL    = /bin/sh
  32. DESTDIR    = .
  33. NULL    =
  34. MAKEFILE= Makefile
  35.  
  36. #
  37. # Location of auxiliary stuff needed for HP-UX
  38. #
  39. PORT    = ${DEPTH}/port/hpux
  40. LINUX    = ${DEPTH}/port/linux
  41. GENERIC    = ${DEPTH}/port/generic
  42. #
  43. # Basic tools used in the build process.
  44. #
  45. C++    = /usr/local/bin/gcc
  46. CC    = /usr/local/bin/gcc
  47.  
  48. NAWK    = /usr/bin/awk
  49. INSTALL    = sh ${PORT}/install.sh
  50. MKDEPEND= ${LINUX}/mkdepend
  51. AR    = /bin/ar
  52. RANLIB    = /bin/echo
  53. SED    = /bin/sed
  54.  
  55. #
  56. # AR options for creating/updating an archive
  57. #
  58. AROPTS=    crs
  59.  
  60. #
  61. # Special options for lptops compilation (yech).
  62. #
  63.  
  64. #
  65. # We wants System V-style getty support.
  66. #
  67. SYSGETTY=GettySysV.c++
  68.  
  69. #
  70. # and we want System V-style UUCP lock support.
  71. #
  72. UUCP_LOCKDIR=/usr/spool/uucp
  73. UUCP_LOCKTYPE=0
  74. UUCP_LOCKMODE=0444
  75.  
  76. #
  77. # Location of Adobe Font Metrics for lptops.
  78. #
  79. AFMDIR=/usr/local/lib/ghostscript/fonts/
  80.  
  81. #
  82. # PostScript imager for server.  PSPACKAGE is one of:
  83. #
  84. # dps    for Display Postscript
  85. # gs    for Ghostscript
  86. #
  87. # and PSIMAGER is the pathname of the binary executable.
  88. #
  89. PSPACKAGE=gs
  90. PSIMAGER=/usr/local/bin/gs
  91.  
  92. #
  93. # Mail program for sending notification messages.
  94. #
  95. SENDMAIL=/usr/lib/sendmail
  96.  
  97. #
  98. # Default optimizer and prototype options
  99. #
  100. OPTIMIZER= -O
  101. PROTOTYPES= -D_PROTOTYPES
  102. CVERSION= -D__ANSI_CPP__ -D_HPUX_SOURCE
  103. C++FILE=-x c++
  104.  
  105. # default definitions for programs--overide them as desired
  106. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT}
  107. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  108. #
  109. # Override this definition to eliminate shared library use.
  110. #
  111. SHDLIBC=
  112.  
  113. #
  114. # Libraries that may vary from machine to machine (especially if
  115. # you use GNU GCC instead of AT&T C++).
  116. #
  117. MACHDEPLIBS=-lg++
  118.  
  119. #
  120. # You must have v3.0 or newer of the TIFF library.  If
  121. # you already have it installed, or if you have version 3.0
  122. # or newer of InterViews installed (which includes the TIFF
  123. # library), you can point these to those places.  Otherwise,
  124. # you can just use the code provided here.
  125. #
  126. TIFF=    ${DEPTH}/libtiff
  127. LIBTIFF=${TIFF}/libtiff.a
  128. #
  129. # If you already have InterViews 3.0 or newer installed,
  130. # define these to be something like:
  131. #
  132. #IV=    /usr/include
  133. #LIBIV=    /usr/lib/libIV.a
  134. # Otherwise you can just use the subset of classes used by
  135. # the fax software and collected here in a hacked-up library.
  136. #
  137. IV=    ${DEPTH}/iv
  138. LIBIV=    ${IV}/libivhack.a
  139. # random utility functions and classes
  140. UTIL=    ${DEPTH}/util
  141. LIBUTIL=${UTIL}/libfaxutil.a
  142. LIBPORT=${PORT}/libport.a
  143.  
  144. #
  145. # Uid&Gid for installing server stuff.  Note that the server process
  146. # proper (/usr/etc/faxd or similar) must either run setuid root or
  147. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  148. # so that the fax server can participate in the UUCP locking scheme
  149. # and thereby implement tty line sharing (i.e. share the same line
  150. # and modem for both fax and data).
  151. #
  152. FAXUSER=uucp
  153. FAXGROUP=sys
  154.  
  155. #
  156. # Directories where stuff gets placed:
  157. #
  158. # BIN        client-directed applications
  159. # LIBDATA    client-directed application library data files
  160. # LIBEXEC    client-directed application library executables
  161. # SPOOL        spooling area for servers
  162. # DOC        non-manual documentation
  163. # USRETC    place for servers (faxd & faxd.recv)
  164. #
  165. BIN=    /usr/local/bin
  166. LIBDATA=/usr/local/lib/fax
  167. LIBEXEC=/usr/local/lib/fax
  168. DOC=    /usr/local/doc/fax
  169. USRETC=    /usr/local/etc
  170.  
  171. SPOOL=    /usr/spool/fax
  172. #
  173. # Manual-related controls:
  174. #
  175. # MAN        head of manual tree
  176. # MANAPP    subdirectory for stuff in BIN
  177. # MANSYS    subdirectory for server & server-related apps
  178. # MANFILES    subdirectory for file format info 
  179. # PAGEDIRT    temp files to remove on clean/clobber
  180. #
  181. MAN    = /usr/local/man
  182.  
  183. MANAPPS    = man1
  184. MANSYS    = man1m
  185. MANFILES= man4
  186.  
  187. LN    = /bin/ln
  188.  
  189. MANCAPP    = ${CLIENTAPPS}
  190. MANCFILE= ${CLIENTFILES:.4f=.4}
  191. MANSAPP    = ${SERVERAPPS}
  192. MANSFILE= ${SERVERFILES:.4f=.4}
  193. PAGEDIRT= ${MANCFILE} ${MANSFILE}
  194.  
  195. .SUFFIXES: .4 .4f
  196. .4f.4:;    ${LN} $< $@
  197.  
  198. # programs used during installation
  199. ECHO=    /bin/echo
  200. #FTR=    /usr/sbin/ftr
  201. GREP=    /bin/grep
  202. RM=    /bin/rm
  203. KILLALL=/etc/killall
  204. PWD=    /bin/pwd
  205. CHROOT=    /etc/chroot
  206.  
  207. #
  208. # Definitions used by common rules.
  209. #
  210. COMMONRULES=${DEPTH}/rules
  211. COMMONTARGS= clobber clean rmtargets depend incdepend
  212.  
  213. #
  214. # C compiler flags are composed of variable (set on the command line),
  215. # local (defined in the makefile), and global (defined in this file)
  216. # parts, in that order.  This ordering is used so that variable or
  217. # locally specified include directories are searched before the globally
  218. # specified ones.
  219. #
  220. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  221.  
  222. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  223. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  224. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  225.  
  226. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  227. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  228. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  229.  
  230. GCOPTS=${OPTIMIZER} ${PROTOTYPES}
  231. GCDEFS=
  232. GCINCS=    -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
  233. #
  234. # C++ flags are decomposed using the same hierarchy as C flags.
  235. #
  236. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  237.  
  238. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  239. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  240. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  241.  
  242. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  243. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  244. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  245.  
  246. GC++OPTS=${OPTIMIZER}
  247. GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
  248. GC++DEFS=
  249.  
  250. #
  251. # Loader flags, composed of library (-l's) and option parts, with
  252. # the libraries appearing last.  Both of these are divided into variable,
  253. # local, and global parts.  The composition of LDFLAGS is done in the
  254. # other "direction" from CFLAGS so that all the -L's, that are part of
  255. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  256. # Another benefit of segregating the libraries from the remaining of the
  257. # loader options is that the libraries alone can easily be given to
  258. # another program, e.g., lint.
  259. #
  260. # Notes:
  261. #   - If a program should not be linked with the shared version of libc,
  262. #     then its make file should override the setting of SHDLIBC with a
  263. #     line such as "SHDLIBC=".
  264. #
  265. LDFLAGS=${LDOPTS} ${LDLIBS}
  266.  
  267. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  268. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  269.  
  270. GLDOPTS=
  271. GLDLIBS=${SHDLIBC}
  272.  
  273. #
  274. # Convenient command macros that include the flags macros.
  275. #
  276. C++F=    ${C++} ${C++FLAGS}
  277. CCF=    ${CC} ${CFLAGS}
  278.  
  279. #
  280. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  281. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  282. # mkdepend option to this.  The other language's mkdepend variables try to
  283. # include their language's name in the variable names.  Unfortunately, a
  284. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  285. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  286. #
  287. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  288. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  289.  
  290. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  291. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  292. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  293.  
  294. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@'
  295. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
  296. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  297.  
  298. #
  299. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  300. # single-source programs using null suffix rules (e.g., .c:}.  This option
  301. # works for both C and C++ make depend.
  302. #
  303. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  304. #
  305. # MKDEPFILE is the name of the dependency database, included by rules.
  306. #
  307. MKDEPFILE=Makedepend
  308. #
  309. # CDEPFILES lists all C or cc-compiled source files that depend on header
  310. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  311. # dependencies computable by ${MKDEPENDC++}.
  312. #
  313. C++DEPFILES=${C++FILES}
  314. CDEPFILES=${CFILES}
  315. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  316.  
  317. #
  318. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  319. #
  320. INCLDIR    =${ROOT}/usr/include
  321.